function C=matmult(A,B);

[n m]=size(A);
[p q]=size(B);

if m~=p,
    C={};
    return;
else
    for i=1:n
        for j=1:q
            acum=0;
            
            for k=1:m
                acum=add(acum,conv(A{i,k},B{k,j}));
            end
            C{i,j}=acum;
        end
    end
end



